import { createRouter, createWebHashHistory } from 'vue-router'
// import index from '../views/first/index.vue'

const routes = [
  {
    path: '/',
    redirect: '/index'
  },
  // {
  //   path: '/sciuv',
  //   name: 'sciuv',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/first/sciuv.vue')
  // },
  // 测试用页面
  {
    path: '/index',
    name: 'index',
    component: () => import(/* webpackChunkName: "about" */ '../views/index.vue')
  },
  {
    path: '/index1',
    name: 'index1',
    component: () => import(/* webpackChunkName: "about" */ '../views/first/index1.vue')
  },
  // {
  //   path: '/fmg',
  //   name: 'fmg',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/first/fmg.vue')
  // },
  // {
  //   path: '/wst',
  //   name: 'wst',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/first/wst.vue')
  // },
  // {
  //   path: '/soi1',
  //   name: 'soi1',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/first/soi1.vue')
  // },
  
  // {
  //   path: '/sciwl',
  //   name: 'sciwl',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/first/sciwl.vue')
  // },
  // {
  //   path: '/sciwl2',
  //   name: 'sciwl2',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/first/sciwl2.vue')
  // },
  // {
  //   path: '/hxi',
  //   name: 'hxi',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/first/hxi.vue')
  // },


  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = createRouter({
  // history: createWebHistory(process.env.BASE_URL),
  history: createWebHashHistory(),
  routes
})

export default router
